<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/common/pages/taglibs.jsp"%>
<%@include file="/common/pages/common.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/css/zTreeStyle/zTreeStyle.css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="<%=basePath%>ac/js/user_edit.js"></script>
<title>user list</title>
</head>
<body>
	<input value="<%=basePath%>" id="contextPath" type="hidden"/>
	<div class="easyui-panel" style="padding: 2px;border:1px solid #ddd;" title="编辑用户" data-options="">
        	<input value="${operator.operatorId}" name="operatorId" id="operatorId" type="hidden"/>
        	<input value="${operator.status}" name="status" id="status" type="hidden"/>
        	<div id="create_First">
	        	<table>
		        	<tr><td><font color="#ff0000">*</font></td><td>用户名：</td><td><input class="easyui-validatebox" data-options="required:true" maxlength="10" id="userName" name="userName" value="${operator.userName }"></td></tr>
		        	<tr><td><font color="#ff0000">*</font></td><td>登录名：</td><td><input id="loginName" name="loginName" maxlength="12" value="${operator.loginName }" readonly="readonly"></td></tr>
		        	<tr><td><font color="#ff0000">*</font></td><td>手机：</td><td><input class="easyui-numberbox" data-options="required:true" maxlength="11" id="phone" name="phone" value="${operator.phone}"></td></tr>
		        	<tr><td></td><td>邮箱：</td><td><input name="email" id="email" value="${operator.email}"></td></tr>
		        	<tr><td></td><td>备注：</td><td><textarea name="remark" style="height:60px;" id="remark">${operator.remark}</textarea></td></tr>
		        	<tr><td></td><td></td><td></td></tr>
		        	<tr><td></td><td></td>
		        		<td>
		        			<a href="#" class="easyui-linkbutton" onclick="javascript:goNext();return false;">下一步</a>
		        			<!--<a href="#" class="easyui-linkbutton" onclick="javascript:gotoBack();return false;">取消</a>-->
		            	</td>
		            </tr>
	        	</table>
        	</div>
        	<div id="create_seconde" style="display:none">
        		<table>
		        	
		        	<tr>
		        		<td>操作员具有功能分组: </td>
		        		<td>
		        			<input type="hidden" id="selectedRoleIds"/>
		        			<c:if test="${not empty listRoles}">
			        			<c:forEach var="role" items="${listRoles}">
			        				<c:set var="checkedFlag" value="" />
				        			<c:if test="${not empty listAssignedRoles }">
										<c:forEach var="role2" items="${listAssignedRoles }">
											<c:if test="${role2.roleId==role.roleId }">
												<c:set var="checkedFlag" value="checked" />
											</c:if>
										</c:forEach>
									</c:if>
			        				<input id="operatorRoles" name="operatorRoles" type="checkbox" <c:out value="${checkedFlag }" /> value="${role.roleId}" />
			        				<c:out value="${role.roleName }" />
			        			</c:forEach>
		        			</c:if>
		        		</td>
		        	</tr>
		        	
		        	<tr>
		            	<td>分配组织: </td>
		            	<td>
		            		<input type="hidden" id="checkedOrgIds"/>
		            		<input type="hidden" id="orgIdStrs" value="${orgIdStrs }" />
		            		<ul id="treeList" class="ztree"></ul>
		            	</td>
		            </tr>
		        	
		            <tr><td></td>
		        		<td>
		        			<a href="#" class="easyui-linkbutton" onclick="javascript:goPreview();return false;">上一步</a>
		        			<a href="#" class="easyui-linkbutton" onclick="submit();return false;">保存</a>
		        			<!--<a href="#" class="easyui-linkbutton" onclick="javascript:gotoBack();return false;">取消</a>-->
		            	</td>
		            </tr>
	        	</table>
	        	
        	</div>
	</div>
</body>
</html>